/* Includes -------------------------------------------------------------*/
#include "pwm.h"


/* Private Function Declaration -----------------------------------------*/
/* Private Functions ----------------------------------------------------*/


/* Public Functions -----------------------------------------------------*/
void PWM_SetDuty(uint16_T PWM_U_Duty, uint16_T PWM_V_Duty, uint16_T PWM_W_Duty)
{
#ifndef MATLAB_MEX_FILE
    EPwm1Regs.CMPA.half.CMPA = PWM_U_Duty;
    EPwm2Regs.CMPA.half.CMPA = PWM_V_Duty;
    EPwm3Regs.CMPA.half.CMPA = PWM_W_Duty;
#endif
}

